<?php

namespace App\Http\Controllers\VideoAdmin;

use App\Http\Controllers\Admin\BaseController;
use App\Library\wxOpen\WxBizMsgCrypt;

class IndexController extends BaseController
{
    public function test(){
        $xml = "<xml>
    <AppId><![CDATA[wxbf888efe9848e4bf]]></AppId>
    <Encrypt><![CDATA[ONff7zmMfY3NJtUD//l6KyZk1W6NB8YKXx33oqXXCFu96FfC/+rAgqrAMixFtBCHzZul06AKxmNhwi2lsEouDMjvsdvpDZDc8DeTle+f9abCktlZHBwpE31YxRiSfa4Zr9JUi1+kErzjMyFtWIB7Tf2IeSp5UhghuHeS/Ap7JZP09iQWEud1ka2kfnngBLSpZ7eQlGEAQXSxXNt2qSdL1qtB4SQvzwIr3F/3HLdGg3EnM2YqeGVonwPCYQqd5gtBxpfg9KfcpwvOV9x1t9SOIVpE9O7gtjeTeHTeRyhMJrhE9Bizwqx6cQUm/tdNBkTa/kqgoXfVXPSOc0Az7un5j92WdQjFC8lL2aJiIGwMx41A3C7ezwDG5kjkZsECQnDL59U4JGbUM70xEd181A8BXC9h0P2eOnXuGQ6wAY/glyok8jZkW+LWiUEZX+W9TzfAn2p135gj17GrT4I+jLiaow==]]></Encrypt>
</xml>";
        $wx = new WxBizMsgCrypt();
        $res = $wx->decryptMsg('19e498602ab1f6f72764df2fe2d43e6d34df2e65', '1604286544', '534424146', $xml, $result);
        echo "<pre>";print_r($res);echo "<pre>";print_r($result);die("2");
    }
}
